package com.gupao.javavip.java;

import lombok.Getter;
import lombok.Setter;

/**
 * @author King
 * @Classname UserEntity
 * @Description
 * @Date 2020/5/3 16:42
 */
@Setter
@Getter
public class UserEntity {
    private static final Integer DEFAULT_AGE = 18;

    private String name;
    private Integer age;

    public void showInfo() {
        System.out.println("Hi,I'm " + name + ", " + age + "!");
    }

    public static void main(String[] args) {
        UserEntity userEntity = new UserEntity();
        userEntity.setName("testName");
        userEntity.setAge(DEFAULT_AGE);

        userEntity.showInfo();
    }
}
